home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT INCLUDEINBUILD.SCRIPT < prev    next >
Encoding:
Text File  |  2000-10-27  |  588 b   |  27 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2000 - Modelworks Software
  3. // @Created build 237 cm19981119
  4.  
  5. // Insert script helper for:
  6.  
  7. /**
  8. @Object: Package 
  9. @Property: includeInBuild - returns true if this package
  10. is to be included in the build.
  11. @Syntax: pkg.includeInBuild
  12. @Summary: includeInBuild - controls how files are included 
  13. */
  14.  
  15. function DoCommand()
  16. {
  17.   var editor = getActiveEditor();
  18.   if (editor)
  19.   {
  20.     var selection = editor.getSelection();
  21.     editor.replace("pkg.includeInBuild", selection); 
  22.     editor.setActive("Insert p.includeInBuild");
  23.   }
  24. }
  25.  
  26. !!/Script
  27.